import kuai
from kuai.molio import MoleculeReader

class CIFReader(MoleculeReader):
    def read(self, file):
        atoms = []
        for i in file:
            if i.startswith('_cell_length_a'):
                a = line.split()[1].strip()
            elif i.startswith('_cell_length_b'):
                b = line.split()[1].strip()
            elif i.startswith('_cell_length_c'):
                c = line.split()[1].strip()
            elif i.startswith('_cell_length_alpha'):
                alpha = line.split()[1].strip()
            elif i.startswith('_cell_angle_beta'):
                beta  = line.split()[1].strip()
            elif i.startswith('_cell_angle_gamma'):
                gamma = line.split()[1].strip() 
            
                
